package com.yfyszk.kingbird.exception;

/**
 * 功能描述: 异常枚举
 *
 * @Description
 * @author:wgc
 * @date:2019-05-25 10:24
 * @return:
 */
public enum GlobalExceptionEnum implements ServiceExceptionEnum {

    /**
     * 错误的请求
     */
    REQUEST_NULL(400, "请求有错误"),
    SERVER_ERROR(500, "服务器异常"),
    QEQUEST_ERROR(501, "请勿重复提交");
    GlobalExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    private Integer code;

    private String message;

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
